<template>
  <iframe class="iframCom" v-if="curUrl" :src="curUrl" frameborder="0"></iframe>
</template>

<script>
import process from '@/api/process'
export default {
  inject: ['processInstanceId'],
  data () {
    return {
      curUrl: '',
    }
  },
  computed: {},
  methods: {
    getProcessPicture () {
      process.getProcessPicture(this.processInstanceId).then(res => {
        this.curUrl = res.data
      })
    }
  },
  created () {
    this.getProcessPicture()
  },
}
</script>

<style lang="less">
.iframCom{
  overflow: hidden;
  width: 100%;
  height: 560px;
}
</style>
